package nml.mail.reg.await;


import nml.mail.reg.Reg;

import java.util.Set;

 
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  cntv_com extends Reg{

	public void reg(String username, String password) {		
		

		dr.get("http://mail.cntv.cn/reg.php?sid=382802&pid=231743");
		
		sleep(5000);
		
 		dr.findElement(By.name("u_email")).sendKeys(username);
		dr.findElement(By.name("u_password")).sendKeys(password);
		dr.findElement(By.name("u_vpassword")).sendKeys(password);
		
		
		dr.findElement(By.name("u_question")).sendKeys("我中学校名全称？");
		dr.findElement(By.name("u_answer")).sendKeys("love y");
		dr.findElement(By.name("u_gender")).click();
		dr.findElement(By.name("u_phone")).sendKeys("13099954555");
		dr.findElement(By.name("u_month")).sendKeys("6");
		dr.findElement(By.name("u_day")).sendKeys("21");
		
		dr.findElement(By.id("u_vid_1")).click();
		dr.findElement(By.id("u_vid_2")).click();
		dr.findElement(By.id("u_vid_3")).click();
		
		
		
		
		
		
		dr.findElement(By.name("u_vcode")).click(); 
		
		
 		
	}

	public static void main(String[] args) {
		new cntv_com().reg("qq331798654", "qq3131798654");
	}
	
	
}

